<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./MasterPageGuest.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">

    <ui:define name="Title">
        <ui:insert name="Title"></ui:insert>
    </ui:define>
    <ui:define name="content2">
        <h:form>  

            <p:panel id="panel" rendered="#{loginform.user == null}" header="Sorry"> 

                <h2>You must login first</h2>


            </p:panel>
            
            <p:outputPanel  id="panel2" rendered="#{loginform.user != null}">  
                <ui:insert name="content">Content</ui:insert> 
            </p:outputPanel>   
        </h:form> 
    </ui:define>
</ui:composition>





